import request from '@/utils/request'
// 获取人群类型
export function getPeopletypelist(data) {
  return request({
    url: '/fullscreen/evalution/getPeopletypelist',
    method: 'post',
    data: data
  })
}
//获取项目
export function getItemelist(peoplename) {
  return request({
    url: '/fullscreen/evalution/getItemelist',
    method: 'post',
    data: `peoplename=${encodeURIComponent(peoplename)}`, // 发送查询字符串
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 指定表单格式
    },

  })
}
// 获取查询数据
export function getItemevalution(data) {
  return request({
    url: '/fullscreen/evalution/getItemevalution',
    method: 'post',
    data: data
  })
}
// 获取查询详细年龄组数据
export function getPeoplegroup(id) {
  return request({
    url: '/fullscreen/evalution/getPeoplegroup',
    method: 'post',
    data: `id=${encodeURIComponent(id)}`, // 发送查询字符串
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 指定表单格式
    },
  })
}

// 统计表 查询数据
export function getItemecount(data) {
  return request({
    url: '/fullscreen/evalution/getItemecount',
    method: 'post',
    data: data
  })
}
